// [[ OnflowGenerator File UUID: 1886c68c90584a3e8b55a9676491d079  ]]
package com.itdct.onflow.system.role.mapper;

import com.itdct.onflow.core.mapper.BaseMapper;
import com.itdct.onflow.core.vo.KeyLabelValueVo;
import com.itdct.onflow.system.role.entity.SysRoleEntity;
import com.itdct.onflow.system.role.qo.SysRoleSearchQo;
import com.itdct.onflow.system.role.vo.SysRoleDetailVo;
import com.itdct.onflow.system.role.vo.SysRoleListVo;

import org.apache.ibatis.annotations.Mapper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @author DCTANT
 * @date 2025-09-02 16:19:43
 * @version 1.0
 * @description 系统角色查询工具
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRoleEntity> {
    @Nullable
    SysRoleDetailVo findById(Long id);

    @NotNull
    List<SysRoleListVo> findByList(SysRoleSearchQo qo);

    // [[ OnflowGenerator Range (- selectFunctions -) Start ]]
    @NotNull
    List<KeyLabelValueVo> selectNameList(SysRoleSearchQo qo);

    @NotNull
    List<KeyLabelValueVo> selectCodeList(SysRoleSearchQo qo);

// [[ OnflowGenerator Range (- selectFunctions -) End ]]

}
